import request from '@/config/axios'

export interface DashboardStatistics {
  productCount: number
  projectCount: number
  demoCount: number
  accountCount: number
  wallMessageCount: number
}

// 获取仪表盘统计数据
export const DashboardApi = {
  // 获取功能模块统计
  getStatistics: (): Promise<DashboardStatistics> => {
    return request.get({ url: '/agent/dashboard/statistics' })
  }
}